package dao;

import java.util.List;

import org.hibernate.Query;

public interface BaseDao<T> {
	public void insert(T objectT);
	public List<T> find(String sql,List<Object>praram);
	public Query findPage(String sql,List<Object>param);
	public void update(String sql,List<Object> param);
	public void delete(Class<T>tclass,int id);
	public List<T> randomFind(String sql,int number);
	public T findById(Class<T>tclass,int id);
}
